﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
#endregion

namespace VoxelEngine
{
    /// <summary>
    /// A simple voxel.
    /// </summary>
    class Block
    {
        public enum BlockType
        {
            BlockType_Default = 0,
            BlockType_Grass
        };

        private bool active = true;
        public bool Active
        {
            get { return active; }
            set { active = value; }
        }

        private BlockType type = BlockType.BlockType_Default;
        public BlockType Type
        {
            get { return type; }
            set { type = value; }
        }

        public Block() { }

        public static Color ConvertBlockTypeToColor(BlockType b)
        {
            if (b == BlockType.BlockType_Default)
                return Color.Yellow;
            else
                return Color.Red;
        }
    }
}
